package com.zsy.springframework.beans.facotry.jiekou.one;

import com.zsy.springframework.beans.facotry.exception.BeansException;

//对外提供getbean的方法
public interface BeanFactory {
    Object getBean(String beanName) throws BeansException;

    Object getBean(String beanName, Object... args) throws BeansException;

    <T> T getBean(String beanName, Class<T> requiredType) throws BeansException;


    //注解用到了
    <T> T getBean(Class<T> requiredType) throws BeansException;

}
